package com.zhuss.enums;

import java.util.List;

import com.zhuss.util.ListBean;

public enum 订单状态显示2 implements BaseEnum {
	
	已取消(-30, "已取消", "", new ListBean<Integer>()
			.build(OrderStatus.定时任务补偿过期.key())
			.build(OrderStatus.用户触发过期.key())
			.build(OrderStatus.未支付之前取消.key())
			.getList()),
	
	未支付(10, "未支付", "", new ListBean<Integer>()
			.build(OrderStatus.未支付.key())
			.build(OrderStatus.已提交支付.key())
			.build(OrderStatus.用户支付中.key())
			.getList()),
			
	支付成功(200, "支付成功", "", new ListBean<Integer>()
			.build(OrderStatus.支付成功.key())
			.getList()),
	
	支付失败(201, "支付失败", "", new ListBean<Integer>()
			.build(OrderStatus.已关闭.key())
			.build(OrderStatus.已撤销.key())
			.build(OrderStatus.支付失败.key())
			.getList()),
			
	退款中(300, "退款中", "", new ListBean<Integer>()
			.build(OrderStatus.转入退款.key())
			.build(OrderStatus.已提交退款申请.key())
			.build(OrderStatus.退款处理中.key())
			.getList()),
			
	退款成功(330, "退款成功", "", new ListBean<Integer>()
			.build(OrderStatus.退款成功.key())
			.getList()),
	
	退款失败(340, "退款失败", "", new ListBean<Integer>()
			.build(OrderStatus.退款关闭.key())
			.build(OrderStatus.退款异常.key())
			.getList()),
			
	已确认上车(210, "已确认上车", "", new ListBean<Integer>()
			.build(OrderStatus.已确认上车.key())
			.getList()),
			
	自动上车(220, "自动上车", "", new ListBean<Integer>()
			.build(OrderStatus.自动上车.key())
			.getList()),
	
	;
	
	Integer key;
	
	String value;
	
	String tag;
	
	List<Integer> statusList;
	
	订单状态显示2(Integer key, String value, String tag, List<Integer> statusList) {
		this.key = key;
		this.value = value;
		this.tag = tag;
		this.statusList = statusList;
	}

	public Boolean sameKey(Integer key) {
		return this.key.equals(key);
	}

	public Integer key() {
		return key;
	}

	public String value() {
		return value;
	}
	
	public String tag() {
		return tag;
	}
	
	public String data() {
		return value;
	}
	
	public List<Integer> statusList() {
		return statusList;
	}

	@Override
	public List<Integer> removeIdList() {
		// TODO Auto-generated method stub
		return null;
	}
	
	@Override
	public Boolean sameValue(String value) {
		return this.value.equals(value);
	}
	

}
